<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2019/5/11
 * Time: 11:35
 */
header("Content-Type:application/json;charset=utf-8");
header("Access-Control-Allow-Origin:*");
session_start();


if(!isset($_SESSION["userinfo"])){
    $arr=Array("msg"=>"请先登录","status"=>"-1",);
    print_r(json_encode($arr));
}else{

    $arr=Array("msg"=>"已登陆","status"=>"1",);
    print_r(json_encode($arr));
}